| 1. | Maintain a shared variable across all test iterations in a load test 在负载测试中的所有测试迭代间维护一个共享变量。 |
| 2. | Locks around shared variables allow java threads to quickly and easily communicate and synchronize 给共享变量上锁就使得java线程能够快速方便地通信和同步。 |
| 3. | Some very strange things can happen if you fail to synchronize when accessing shared variables 如果在访问共享变量的时候没有同步的话,就会发生一些奇怪的事情。 |
| 4. | You will be able to share variables among the scripted action script and the prefix and suffix scripts 可以在scripted action脚本与前缀脚本和后缀脚本间共享变量。 |
| 5. | In the preceding example , the compiler generates a warning message both times the code accesses the shared variable 在前面的示例中,编译器在代码通过实例访问共享变量 |
| 6. | Volatile variables can also be used to store shared variables at a lower cost than that of synchronization , but they have limitations 还可以使用可变变量来以比同步更低的成本存储共享变量,但它们有局限性。 |
| 7. | A shared variable or event is stored in memory only once , no matter how many or few instances you create of its class or structure 共享变量或事件只能在内存中存储一次,而无论您创建多少个它的类或结构的实例。 |
| 8. | Unfortunately , this situation is a common use case for volatile - using a volatile field as a " guard " to indicate that a set of shared variables had been initialized 不幸地,这是volatile常见用例用一个volatile字段作为“守护”表明已经初始化了一组共享变量。 |
| 9. | In particular , nearly every modern processor has instructions for updating shared variables in a way that can either detect or prevent concurrent access from other processors 特别是,几乎每个现代处理器都有通过可以检测或阻止其他处理器的并发访问的方式来更新共享变量的指令。 |
| 10. | Developers may find use for atomic variables directly as a higher - performance replacement for shared counters , sequence number generators , and other independent shared variables that otherwise would have to be protected by synchronization 开发人员可以直接将原子变量用作共享计数器、序号生成器和其他独立共享变量的高性能替代,否则必须通过同步保护这些变量。 |